//
//  AboutMyController.m
//  LiquorChain
//
//  Created by apple on 2019/1/3.
//  Copyright © 2019年 王冬. All rights reserved.
//

#import "AboutMyController.h"

@interface AboutMyController ()

@end

@implementation AboutMyController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.navigationItem.title = @"关于我们";
    self.view.backgroundColor = BACKGROUNDCOLOR;
    UIView *backView =[[UIView alloc]init];
    backView.backgroundColor =[UIColor whiteColor];
    [self.view addSubview:backView];
    [backView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(kNavBarHeight +15);
        make.left.right.mas_equalTo(0);
        make.height.mas_equalTo(SCREEN_HEIGHT - kNavBarHeight - 15);
    }];
    UIImageView *headImageView =[[UIImageView alloc]init];
    [backView addSubview:headImageView];
    headImageView.layer.masksToBounds= YES;
    headImageView.layer.cornerRadius = 20;
    headImageView.backgroundColor =[UIColor redColor];
    [headImageView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(45);
        make.centerX.mas_equalTo(backView.mas_centerX);
        make.width.height.mas_equalTo(124);
        
    }];
    UILabel *emaile =[[UILabel alloc]init];
    emaile.text = @"邮箱";
    emaile.font =[UIFont systemFontOfSize:14];
    [backView addSubview:emaile];
    [emaile mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(headImageView.mas_bottom).with.offset(60);
        make.left.mas_equalTo(80);
        make.width.mas_equalTo(40);
        make.height.mas_equalTo(14);
    }];
    UILabel *emaileLabel =[[UILabel alloc]init];
    emaileLabel.text = @"12345@qq.com";
    emaileLabel.font =[UIFont systemFontOfSize:15];
    [backView addSubview:emaileLabel];
    [emaileLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(headImageView.mas_bottom).with.offset(60);
        make.left.mas_equalTo(emaile.mas_right).with.offset(20);
        make.right.mas_equalTo(-20);
        make.height.mas_equalTo(15);
    }];
    
    UILabel *phone =[[UILabel alloc]init];
    phone.text = @"客服";
    phone.font =[UIFont systemFontOfSize:14];
    [backView addSubview:phone];
    [phone mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(emaileLabel.mas_bottom).with.offset(30);
        make.left.mas_equalTo(80);
        make.width.mas_equalTo(40);
        make.height.mas_equalTo(14);
    }];
    UILabel *phoneLabel =[[UILabel alloc]init];
    phoneLabel.text = @"88881234";
    phoneLabel.font =[UIFont systemFontOfSize:15];
    [backView addSubview:phoneLabel];
    [phoneLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(emaileLabel.mas_bottom).with.offset(30);
        make.left.mas_equalTo(phone.mas_right).with.offset(20);
        make.right.mas_equalTo(-20);
        make.height.mas_equalTo(15);
    }];
    
    UILabel *version =[[UILabel alloc]init];
    version.text = @"版本号";
    version.font =[UIFont systemFontOfSize:14];
    [backView addSubview:version];
    [version mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(phoneLabel.mas_bottom).with.offset(30);
        make.left.mas_equalTo(80);
        make.width.mas_equalTo(50);
        make.height.mas_equalTo(14);
    }];
    UILabel *versionLabel =[[UILabel alloc]init];
    versionLabel.text = @"1.0.0";
    versionLabel.font =[UIFont systemFontOfSize:15];
    [backView addSubview:versionLabel];
    [versionLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(phoneLabel.mas_bottom).with.offset(30);
        make.left.mas_equalTo(version.mas_right).with.offset(20);
        make.right.mas_equalTo(-20);
        make.height.mas_equalTo(15);
    }];
    
    
    
    
    
    // Do any additional setup after loading the view.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
